package com.oncliedisk.administrator.model;

import android.graphics.Bitmap;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2015/12/3.
 * 文件基类
 */
public class FileModel implements Serializable{
    private int id; //id
    private String name;//文件名字
    private String createTime; //创建时间
    private String icon; //图标的路径
    private String type;//文件类型 (文件夹，图片，文档，Bt种子，视频，音乐,应用,其他)
    private String size; //文件的大小
    private String path; //文件下载地址
    private List<FileModel> list; //如果是文件夹，这个集合技术文件夹里的所有文件
    private boolean isFirst; //是否是目录第一层的数据
    private int backId; //上一层的ID
    private boolean isCheck; //是否被选中
    private boolean isLoading; //待选择状态
    private boolean isSingle; //正常状态
    private int imgRes;
    private Bitmap bitmap;
    private String parentPath;
    public FileModel() {
    }

    public String getParentPath() {
        return parentPath;
    }

    public void setParentPath(String parentPath) {
        this.parentPath = parentPath;
    }

    public int getImgRes() {
        return imgRes;
    }

    public void setImgRes(int imgRes) {
        this.imgRes = imgRes;
    }


    public Bitmap getBitmap() {
        return bitmap;
    }

    public void setBitmap(Bitmap bitmap) {
        this.bitmap = bitmap;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public List<FileModel> getList() {
        return list;
    }

    public void setList(List<FileModel> list) {
        this.list = list;
    }

    public boolean isFirst() {
        return isFirst;
    }

    public void setIsFirst(boolean isFirst) {
        this.isFirst = isFirst;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getBackId() {
        return backId;
    }

    public void setBackId(int backId) {
        this.backId = backId;
    }

    public boolean isCheck() {
        return isCheck;
    }

    public void setIsCheck(boolean isCheck) {
        this.isCheck = isCheck;
    }

    public boolean isLoading() {
        return isLoading;
    }

    public void setIsLoading(boolean isLoading) {
        this.isLoading = isLoading;
    }

    public boolean isSingle() {
        return isSingle;
    }

    public void setIsSingle(boolean isSingle) {
        this.isSingle = isSingle;
    }
}
